package com.example.demo.entity.vo;

import com.example.demo.entity.TycBaseResponse;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @ClassName TycSearchVO
 * @Author liupanpan
 * @Date 2025/1/2
 * @Description
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class TycSearchVO extends TycBaseResponse {

    private Result result;

    @Data
    public static class Result {
        private Integer total;
        private List<ResultItem> items;

        public Integer getTotal() {
            return total;
        }

        public void setTotal(Integer total) {
            this.total = total;
        }

        public List<ResultItem> getItems() {
            return items;
        }

        public void setItems(List<ResultItem> items) {
            this.items = items;
        }
    }

    @Data
    public static class ResultItem {

        // 经营状态
        private String regStatus;

        // 成立日期
        private String estiblishTime;

        // 注册资本
        private String regCapital;

        // 机构类型
        private Integer companyType;

        // 匹配原因
        private String matchType;

        // 1-公司， 2-个人
        private Integer type;

        // 法人
        private String legalPersonName;

        // 注册号
        private String regNumber;

        // 统一社会信用代码
        private String creditCode;

        // 公司名
        private String name;

        // 公司id
        private Long id;

        // 组织机构代码
        private String orgNumber;

        // 省份
        private String base;

        public String getRegStatus() {
            return regStatus;
        }

        public void setRegStatus(String regStatus) {
            this.regStatus = regStatus;
        }

        public String getEstiblishTime() {
            return estiblishTime;
        }

        public void setEstiblishTime(String estiblishTime) {
            this.estiblishTime = estiblishTime;
        }

        public String getRegCapital() {
            return regCapital;
        }

        public void setRegCapital(String regCapital) {
            this.regCapital = regCapital;
        }

        public Integer getCompanyType() {
            return companyType;
        }

        public void setCompanyType(Integer companyType) {
            this.companyType = companyType;
        }

        public String getMatchType() {
            return matchType;
        }

        public void setMatchType(String matchType) {
            this.matchType = matchType;
        }

        public Integer getType() {
            return type;
        }

        public void setType(Integer type) {
            this.type = type;
        }

        public String getLegalPersonName() {
            return legalPersonName;
        }

        public void setLegalPersonName(String legalPersonName) {
            this.legalPersonName = legalPersonName;
        }

        public String getRegNumber() {
            return regNumber;
        }

        public void setRegNumber(String regNumber) {
            this.regNumber = regNumber;
        }

        public String getCreditCode() {
            return creditCode;
        }

        public void setCreditCode(String creditCode) {
            this.creditCode = creditCode;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public String getOrgNumber() {
            return orgNumber;
        }

        public void setOrgNumber(String orgNumber) {
            this.orgNumber = orgNumber;
        }

        public String getBase() {
            return base;
        }

        public void setBase(String base) {
            this.base = base;
        }
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }
}
